import org.eclipse.swt.widgets.Dialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Button;


public class timeUpDialog extends Dialog {

	protected Object result;
	protected Shell shell;
	private Label instructions;

	/**
	 * Create the dialog.
	 * @param parent
	 * @param style
	 */
	public timeUpDialog(Shell parent, int style) {
		super(parent, style);
		setText("SWT Dialog");
	}

	/**
	 * Open the dialog.
	 * @return the result
	 */
	public Object open() {
		createContents();
		shell.open();
		shell.layout();
		Display display = getParent().getDisplay();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
		return result;
	}

	/**
	 * Create contents of the dialog.
	 */
	private void createContents() {
		shell = new Shell(getParent(), SWT.NO_TRIM);
		shell.setSize(314, 300);
		shell.setText(getText());
		{
			Composite composite = new Composite(shell, SWT.NONE);
			composite.setBounds(0, 0, 314, 300);
			{
				instructions = new Label(composite, SWT.NONE);
				instructions.setBounds(10, 10, 291, 141);
				instructions.setText("New Label");
			}
			{
				Button confirm = new Button(composite, SWT.NONE);
				confirm.setBounds(125, 203, 68, 23);
				confirm.setText("\u05D0\u05D9\u05E9\u05D5\u05E8");
			}
		}

	}
	
	private void setInstructions(String instructions){
		this.instructions.setText(instructions);
	}

}
